﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace WebSite.cn
{
    public partial class bigPhoto : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string GetImgHtml()
        {
            StringBuilder sbHtml = new StringBuilder();
            string sUrl = "";
            string sPic = "";
            if(Request.QueryString["id"]== "1")
            {
                sUrl = "insuring.html";
                sPic = "big_service_01.jpg";
            }else     if(Request.QueryString["id"]== "2")
            {
                sUrl = "gymnasium.html";
                sPic = "big_service_02.jpg";
            }
            else if (Request.QueryString["id"] == "3")
            {
                sUrl = "festival.html";
                sPic = "big_service_03.jpg";
            }
            else if (Request.QueryString["id"] == "4")
            {
                sUrl = "birthdayLove.html";
                sPic = "big_service_04.jpg";
            }
            else if (Request.QueryString["id"] == "5")
            {
                sUrl = "healthy.html";
                sPic = "big_service_05.jpg";
            }
            else if (Request.QueryString["id"] == "6")
            {
                sUrl = "#";
                sPic = "big_service_06.jpg";
            }

            if (Request.QueryString["id"] != "6")
            {
                sbHtml.AppendFormat(" <img  onclick=\"window.open('/cn/service/{0}','_blank');\"  src='/cn/images/{1}' /> "
                                         , sUrl
                                         , sPic);
            }
            else
            {
                sbHtml.AppendFormat(" <img   src='/cn/images/{0}' /> "
                                        , sPic);
            }
            return sbHtml.ToString();
        }
    }
}